﻿using System;
using System.Collections.Generic;
using System.Text;

namespace efish.Framework.Model
{
    public class NewsItem : BaseModel
    {
        #region Basic info
        private string _title;
        public virtual string Title
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }

        private int _classID;
        public virtual int ClassID
        {
            get
            {
                return _classID;
            }
            set
            {
                _classID = value;
            }
        }

        private string _content;
        public virtual string Content
        {
            get
            {
                return _content;
            }
            set
            {
                _content = value;
            }
        }

        private string _attachments;
        public virtual string Attachments
        {
            get
            {
                return _attachments;
            }
            set
            {
                _attachments = value;
            }
        }

        private string _addedby;
        public virtual string AddedBy
        {
            get
            {
                return _addedby;
            }
            set
            {
                _addedby = value;
            }
        }

        private DateTime _addeddate;
        public virtual DateTime AddedDate
        {
            get
            {
                return _addeddate;
            }
            set
            {
                _addeddate = value;
            }
        }

        //private NewsClass _newsclass;
        //public virtual NewsClass NewsClass
        //{
        //    get
        //    {
        //        return _newsclass;
        //    }
        //    set
        //    {
        //        _newsclass = value;
        //    }
        //}

        #endregion

        private IList<string> _attachmentUrls;
        public virtual IList<string> AttachmentUrls
        {
            get
            {
                return _attachmentUrls;
            }
            set
            {
                _attachmentUrls = value;
            }
        }
    }
}
